#pragma once
#include <string>
#include <stdexcept>

void runtime_assert(bool result, const std::string& error_msg) {
	if (!result)
		throw std::runtime_error(error_msg);
}